@inherits System.Web.Mvc.WebViewPage<Filesystem.FilePicker.FilePickerEditorModel>
@using ClientDependency.Core;
@using ClientDependency.Core.Mvc;
@using System.Web.Helpers;
@using System.Web.Mvc;
@using System.Web.Mvc.Ajax;
@using System.Web.Mvc.Html;
@using System.Web.Routing;
@using System.Web.WebPages;
@using Microsoft.Web.Mvc;
@using Filesystem.FilePicker
@using Umbraco.Cms.Web;
@using Umbraco.Cms.Web.Editors;
@using Umbraco.Cms.Web.PropertyEditors.Numeric
@using System.IO;
@using System.Web.Mvc.Html;
@{
    if (!Model.Exists)
    {
        Model.FilePath = "";
    }
    Html.RequiresJsResource(typeof(FilePickerEditor), "Filesystem.FilePicker.Content.filepicker.js");
    Html.RequiresCssResource(typeof(FilePickerEditor), "Filesystem.FilePicker.Content.filepicker.css");
}
<div style="width:650px;">
    @Html.HiddenFor(x => Model.FileExt, new { @id = "file_picker_ext" })
    @Html.HiddenFor(x => Model.FilePath, new { @id = "file_picker_path" })
    @Html.HiddenFor(x => Model.RootDir, new { @id = "file_picker_root" })
    <div id="file_picker_value_preview_container">
        <div id="file_picker_display_url">@Model.Value</div>
        <a title="Remove" id="file_picker_remove_value">X</a>
    </div>
    <button type="button" id="file_picker_select">Select</button>
</div>
<div id="bgCover"></div>
<div id="filePickerDlg">
    <div id="filePickerDlg_1_div">
        <span style="float: left;line-height: 28px;">Folder:</span>
        <div id="file_picker_folder" >@Model.RootDir</div>
        <div id="file_picker_current_folder"></div>
        <button id="file_picker_new_folder_btn" onclick="file_picker_create_folder();return false;" >New Folder</button>
        <button id="file_picker_refresh_btn" onclick="window.refresh_current_folder();return false;" >refresh</button>
        <button id="file_picker_upload_btn" onclick="file_picker_upload_file();return false;" >Upload</button>
    </div>
    <div id="file_picker_list" ></div>
    <div id="file_picker_dlg_footer">
        <button id="file_picker_ok">OK</button>
        <button id="file_picker_cancel">Cancel</button>
        <div >
            <span id="tmp_sel_file_name"></span>
            <span id="tmp_sel_file_path" style="display:none;">@Model.FilePath</span>
        </div>
    </div>
</div>